(function() {

	return function(req, service) {
		if (req.path == '/echo') {
			var msg = req.params.getFirst('m');
			return new Response({
				request : req,
				code : 200,
				contentType : 'text/plain',
				content : {
					type : 'text',
					value : msg
				}
			});
		}

		return service(req);
	}

})();
